<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客系统首页</title>
    <style>
        body{
            display: flex;
            justify-content: center;
        }
        #keyword{
            margin-left: 3px;
        }
        #add{
            margin-right: 3px;
        }
        .div_query{
            float: left;
        }
        .div_add{
            float: right;
        }
    </style>
</head>
<body>
    <div>
        <div>
            <div class="div_query">
                <input type="text" id="keyword">
                <input type="button" value="查找" onclick="query()">
            </div>
            <div class="div_add">
                <input type="button" id="add" value="新增" onclick="add()">
            </div>
        </div>
        <div class="div_data">
            <table id="tbData">
                <tr>
                    <th>id</th>
                    <th>标题</th>
                    <th>摘要</th>
                    <th>内容</th>
                    <th>分类</th>
                    <th>作者</th>
                    <th>发表时间</th>
                    <th>操作</th>
                </tr>
            </table>
        </div>
    </div>
    <script src="./js/jquery-3.6.0.min.js"></script>
    <script src="./js/blog_api.js"></script>
    <script src="./js/init.js"></script>
</body>
</html>